#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
	int n;
	int a=0, b=0, c=0;
	scanf("%d", &n);
	a = n / 10000;
	b = n % 10000 / 100;
	c = n %100;
	printf("year=%d\n", a);
	printf("month=%02d\n", b);
	printf("date=%0d\n", c);
	return 0;

}